package com.zj.study.feign;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author 赵赳
 * @since 2021/12/5 00:29
 */
@FeignClient(value = "nacos-discovery-provider")
public interface ProviderFeignClient {

    /**
     * sum test
     *
     * @param a a
     * @param b b
     * @return 结果
     */
    @GetMapping("/feign-demo")
    int sum(@RequestParam("a") int a, @RequestParam("b") int b);

}
